import { request } from '@/service/request';

/** 获取容器状态
列表 */
export function fetchGetContainerStatusList (params?: Api.System.ContainerStatusSearchParams) {
    return request<Api.System.ContainerStatusList>({
        url: '/system/containerStatus/list',
        method: 'get',
        params
    });
}

/** 新增容器状态
 */
export function fetchCreateContainerStatus (data: Api.System.ContainerStatusOperateParams) {
    return request<boolean>({
        url: '/system/containerStatus',
        method: 'post',
        data
    });
}

/** 修改容器状态
 */
export function fetchUpdateContainerStatus (data: Api.System.ContainerStatusOperateParams) {
    return request<boolean>({
        url: '/system/containerStatus',
        method: 'put',
        data
    });
}

/** 批量删除容器状态
 */
export function fetchBatchDeleteContainerStatus (ids: CommonType.IdType[]) {
    return request<boolean>({
        url: `/system/containerStatus/${ids.join(',')}`,
        method: 'delete'
    });
}
